package kr.hkit.androidcomplete01.chapter08;

import kr.hkit.androidcomplete01.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch08MainActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.ch08main);
	}
	
	public void mOnClick(View v){
		Intent intent = null;
		switch(v.getId()){
		case R.id.ch08_btn01:
			intent = new Intent(this, HandleEvent.class);
			break;
		case R.id.ch08_btn02:
			intent = new Intent(this, HandleEventLisener.class);
			break;
		case R.id.ch08_btn03:
			intent = new Intent(this, HandlerOrder.class);
			break;
		case R.id.ch08_btn04:
			intent = new Intent(this, HandlerAccess.class);
			break;
		case R.id.ch08_btn05:
			intent = new Intent(this, FreeLine.class);
			break;
		case R.id.ch08_btn06:
			intent = new Intent(this, MoveCircle.class);
			break;
		case R.id.ch08_btn07:
			intent = new Intent(this, LongClick.class);
			break;
		}
		startActivity(intent);
	}
	
	
}
